﻿/*
* Virtual Router v1.0 - http://virtualrouter.codeplex.com
* Wifi Hot Spot for Windows 8, 7 and 2008 R2
* Copyright (c) 2013 Chris Pietschmann (http://pietschsoft.com)
* Licensed under the Microsoft Public License (Ms-PL)
* http://virtualrouter.codeplex.com/license
*/

using System.Collections.Generic;
using System.ServiceModel;

namespace VirtualRouterHost
{
  [ServiceContract(Namespace = "http://VirtualRouter")]
  public interface IVirtualRouterHost
  {
    [OperationContract]
    void Start(SharableConnection sharedConnection);

    [OperationContract]
    void Stop();

    [OperationContract]
    void SetConnectionSettings(string ssid, int maxPeerCount);

    [OperationContract]
    ConnectionSettings GetConnectionSettings();

    [OperationContract]
    IEnumerable<SharableConnection> GetSharableConnections();

    [OperationContract]
    void SetPassword(string password);

    [OperationContract]
    string GetPassword();

    [OperationContract]
    bool IsStarted();

    [OperationContract]
    IEnumerable<ConnectedPeer> GetConnectedPeers();

    [OperationContract]
    SharableConnection GetSharedConnection();

    [OperationContract]
    string GetLastError();
  }
}